﻿using Microsoft.Xna.Framework.Input;
namespace GameName1
{
    class TurnManager
    {
        private bool _isTurnRunning;
        public bool IsTurnRunning
        {
            get { return _isTurnRunning; }
            set { _isTurnRunning = value; }
        }

        public void BeginTurn()
        {
            IsTurnRunning = true;
        }

        public void EndTurn()
        {
            IsTurnRunning = false;
        }

        public bool IsValidKey(Keys key)
        {
            if (key == Keys.NumPad1)
                return true;
            if (key == Keys.NumPad2)
                return true;
            if (key == Keys.NumPad3)
                return true;
            if (key == Keys.NumPad4)
                return true;
            if (key == Keys.NumPad6)
                return true;
            if (key == Keys.NumPad7)
                return true;
            if (key == Keys.NumPad8)
                return true;
            if (key == Keys.NumPad9)
                return true;
            return false;
        }
    }
}